<?php include 'heard.htm';?>
<div id="content">
	<div class="container">
		<div class="row">
			<?php include 'left.htm';?>
			<div class="span9">
				<h1 class="page-title">
					<i class="icon-home"></i>
					图片上传				
				</h1>
				<div class="widget">
					<div class="widget-header">
						<i class="icon-th-list"></i>
						<h3>信息填写</h3>
					</div> <!-- /widget-header -->
					<div class="widget-content">
						<form name="form1" id="form1" action="addimg.php" method="post" enctype="multipart/form-data">
	                        <fieldset>
							<div class="control-group warning">
								<label for="inputWarning" class="control-label">标题：</label>
								<div class="controls">
								  <input type="text" id="title" name="title" value="<?php echo $info['title']?>">
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">英文标题：</label>
								<div class="controls">
								  <input type="text" id="title" name="e_title" value="<?php echo $info['e_title']?>">
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">选择图片：</label>
								<div class="controls">
								  	<input class="input-file uniform_on" id="fileInput" type="file" name="pic">
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">描述：</label>
								<div class="controls">
								  	<textarea class="autogrow" id="descinfo" name="descinfo"><?php echo $info['descinfo']?></textarea>
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">英文描述：</label>
								<div class="controls">
								  	<textarea class="autogrow" id="e_descinfo" name="e_descinfo"><?php echo $info['e_descinfo']?></textarea>
								</div>
							 </div>
							 
							 <?php if( $info['id']!=''){?>
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">当前图片：</label>
								<div class="controls">
								  	<img src="./static/upload/<?php echo $info['name']?>"/>
								</div>
							 </div>
							 <?php }?>
							 
							
							<!--  <div class="control-group">
								<label for="selectError3" class="control-label">隶属分类</label>
								<div class="controls">
								  <select id="p_id" name="p_id">
									<option value="0">--无分类--</option>
								  </select>
								</div>
							  </div>
							   -->
							  <div class="form-actions">
								<button class="btn btn-primary" type="submit">Save changes</button>
							  </div>
							 </fieldset>
							 <input type="hidden" id="upid" name="upid" value="<?php echo $info['id']?>">
						 </form>
					</div> <!-- /widget-content -->
				</div> <!-- /widget -->
				
				<div class="plan-actions">				
					<a class="btn" href="image.php">返回  列表</a>				
				</div>
				
			</div> <!-- /span9 -->
		</div> <!-- /row -->
	</div> <!-- /container -->
</div> <!-- /content -->
<div id="footer">
	<div class="container">				
		<hr />
		<p>&copy; 2013 Go iGoif.</p>
	</div> <!-- /container -->
</div> <!-- /footer -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./js/excanvas.min.js"></script>
<script src="./js/jquery.flot.js"></script>
<script src="./js/jquery.flot.pie.js"></script>
<script src="./js/jquery.flot.orderBars.js"></script>
<script src="./js/jquery.flot.resize.js"></script>
<script src="./js/bootstrap.js"></script>
<script src="./js/charts/bar.js"></script>
</body>
</html>
